#!/bin/bash

source ./scripts/configs.sh

# Remove the backup files
echo -e "\n## Removing the backup files\n"
for item in "${link_items[@]}"; do
    backup_path=$HOME/$item.bak
    if [ -f "$backup_path" ] || [ -d "$backup_path" ]; then
        echo "remove: $backup_path"
        rm -rf "$backup_path"
    fi
done

echo -e "\n## Done\n"